import math
inp=input().split(' ')
a=float(inp[0])
b=float(inp[1])
n=2

def fun(x):
    return 1/(x**2+x**4)

def complex_cotes(a,b,n):

    k=[32,12,32,14]
    cnt=0
    sum=0
    h=(b-a)/n
    sum+=7*(fun(a)+fun(b))

    delta=h/4
    for i in range(1,4*n):
        sum+=k[cnt]*fun(a+i*delta)
        cnt = (cnt + 1) % 4

    sum*=h/90

    return sum

print("%.4f"%complex_cotes(a,b,n))

